package com.zrt.bookstore3.Domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Book {
    private int id;
    private String name;
    private String type;
    private double price;
    private int status;
    private int ishot;
    private int isnew;
   // private List<Order> orderList;
    private int categoryId;

    public Book(String name,  int ishot, int isnew,  int categoryId) {
        this.name = name;
        this.ishot = ishot;
        this.isnew = isnew;
        this.categoryId = categoryId;
    }
}
